class Rectangle(val height: Int, val width: Int) {
    //isSquare 实际上是个boolean类型,它的值由get() 之后的判断来决定
    val isSquare
        get() = height == width

}